<?php
// +----------------------------------------------------------------------
// | snake
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2022 http://baiyf.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: NickBai <1902822973@qq.com>
// +----------------------------------------------------------------------
namespace app\common\validate;

use think\Validate;

class CenterValidate extends Validate
{
    protected $rule = [
        ['username', 'unique:user', '用户名已经存在'],
        ['username', 'require|max:10', '用户名长度不能超过10个字符'],
        ['username', 'require|min:3', '用户名长度不能少于3个字符'],
        ['password', 'require', '密码不能为空'],
    ];

}